home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Washington_1988 / Devcon_Extras / SRT / SRT_Demo < prev    next >
Encoding:
Text File  |  1992-10-21  |  2.6 KB  |  68 lines

  1. .bra {
  2. .ket }
  3. echo "*N*N*N SRT (Set Requester Text) - Preliminary version - v1.31"
  4. echo " Copyright 1988 Commodore-Amiga, Inc.  All Rights Reserved"
  5. echo "*N The SRT program and srt.text file are in this directory."
  6. echo "This script will demonstrate the use of SRT."
  7. WAIT 4
  8. echo "*N SRT lets you replace standard requester text with replacement"
  9. echo "strings from a plain ASCII file (default s:srt.text)."
  10. WAIT 4
  11. echo "*N Installing SRT... Executing:  SRT srt.text"
  12. SRT srt.text
  13. if warn
  14. echo "Installation failed.  Please see README or type SRT ?"
  15. else
  16. echo "*N*N Now we'll cause a requester for a non-existent volume"
  17. echo "to demonstrate standard text replaced with srt.text..."
  18. echo "*NWhen requester appears, click 'Give Up' to continue..."
  19. WAIT 5
  20. echo "*NExecuting: dir SomeVolume:"
  21. DIR >NIL: SomeVolume:
  22. echo "*N*N But wait... There's more."
  23. echo "*N If the replacement text for 'Software Error - task held'"
  24. echo "is 'DEBUG' (as it is in srt.text), then SRT will replace"
  25. echo "Software Error requesters with a full width debugging display"
  26. echo "including registers, PC, SP, and name of the task or command"
  27. echo "that crashed, with a SUSPEND gadget option for removing the"
  28. echo "requester and suspending the task."
  29. WAIT 12
  30. echo "*N Several tiny crash-producing programs are supplied with SRT"
  31. echo "to demonstrate SRT's debugging display.  The programs each"
  32. echo "cause a different 68000 exception (crash3, crash4, crash8, etc)"
  33. echo "by performing non-destructive instructions such as division by 0"
  34. echo "or illegal access of an odd address."
  35. WAIT 10
  36. echo "*N If you would like to see a demonstration of the DEBUG display"
  37. echo "just answer Y (yes) to the next question. *N"
  38. WAIT 3
  39. ASK  "Would you like this demo to run the crash5 (division by 0) program ? "
  40. if warn
  41. WAIT 2
  42. echo "*N Executing: RUN >NIL: crash5*N"
  43. WAIT 1
  44. RUN >NIL: crash5
  45. WAIT 2
  46. echo "*N*N SRT intercepts the Software Error and provides enough information"
  47. echo "for local debugging and disassembly.  Note that the SUSPEND gadget"
  48. echo "contains the name of the crashed program. *N"
  49. ask "Click SUSPEND, then hit <RET> here when ready to continue: "
  50. endif
  51. echo "*N SRT can even be used to debug AFTER a Software Error requester"
  52. echo "is up.  If you can bring up a new CLI or Shell, you can install"
  53. echo "SRT, and then click RETRY on an existing Software Error requester"
  54. echo "and SRT will replace it with the DEBUG requester."
  55. WAIT 10
  56. echo "*N If SRT is not in use, it can be un-installed with the command"
  57. echo "SRT RESET."
  58. echo "*N The SRT Demo will now uninstall SRT.  Executing: SRT RESET"
  59. SRT RESET
  60. WAIT 5
  61. echo "*N === End of SRT Demo ==="
  62. endif
  63.  
  64.  
  65.  
  66.  
  67.  
  68.